<!doctype html>
<html>

<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>模型信息编辑</title>
<link rel="stylesheet" href="../css/edit.css">
<link rel="stylesheet" href="../css/main.css">
<link rel="stylesheet" href="../css/bootstrap.css" type="text/css" media="all">
<script type="text/javascript" src="../lib/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript" src="../lib/jquery-ui/1.9.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="../lib/ajax/ajaxfileupload.js"></script>
<script type="text/javascript" src="../utility/utility.js"></script>
<script type="text/javascript" src="js/model.js"></script>
</head>

<body>
	<div class="middle" style="padding: 50px; font-size: 30px">
		<span id="itemTitle"></span>
		<button class="btn" onclick="toPage('./index.html')" style="float: right; border: 2px solid #000000">返回主页</button>
	</div>
	<div style="background-color: #459df5; height: 40px;"></div>
	<div class="middle">
		<span id="infoout" style="color: red"></span>
	</div>
	<div class="middle border" style="height: 270px">
		<div class="floatarea border" style='width: 49%; height: 250px'>
			<table class="table table-bordered table-striped" style="width: 100%">
				<thead>
					<tr>
						<th style="text-align: left; width: 150px; vertical-align: middle">基础属性编辑</th>
						<th style="text-align: right; vertical-align: middle;">保存修改&nbsp;&nbsp;&nbsp;<span class='btn-ok btn btn32 ripple'
							onclick="commit()"></span></th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td style="text-align: left; vertical-align: middle">标题</td>
						<td><input id="input_title" style="text-align: left; width: 100%"></td>

					</tr>
					<tr>
						<td style="text-align: left; vertical-align: middle">调用模式</td>
						<td><select id="call_type" class="form-control" style="width: 100%">
						</select></td>
					</tr>
					<tr>
						<td style="text-align: left; vertical-align: middle">URL</td>
						<td><input id="input_url" style="text-align: left; width: 100%"></td>
					</tr>
					<tr>

						<td style="text-align: left; vertical-align: middle">备注</td>
						<td><input id="input_info" style="text-align: left; width: 100%"></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="floatarea" style='width: 1%; height: 10px'></div>
		<div class="floatarea border" style='width: 49%; height: 250px'>
			<table class="table table-bordered table-striped" style="width: 100%">
				<thead>
					<tr>
						<th style="text-align: left; width: 150px; height: 52px; vertical-align: middle">OpenApi属性</th>
						<td style="text-align: left; vertical-align: middle"><a>用于OpenApi调用模式</a></td>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td style="text-align: left; vertical-align: middle">OpenApi 模型名</td>
						<td><input id="input_model" style="text-align: left; width: 100%"></td>
					</tr>
					<tr>
						<td style="text-align: left; vertical-align: middle">OpenApi Token</td>
						<td><input id="input_token" style="text-align: left; width: 100%"></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>

	<div class="middle border">
		<div>
			<label class="title">对话测试</label>&nbsp;<a>单轮对话测试</a>
		</div>
		<div class="border" style='width: 100%'>
			<pre id="output_test" style="text-align: left; width: 100%; height: 300px; white-space: pre-wrap; resize: vertical"></pre>
			<table class="table table-bordered table-striped" style="width: 100%">
				<thead>
					<tr>
						<th style="text-align: left; width: 100px; vertical-align: middle">对话测试</th>
						<th><input id="input_test" style="text-align: left; width: 100%; height: 32px"
							onkeydown="if(event.keyCode==13){chat();}"></th>
						<th style="text-align: center; width: 48px"><span class='btn-ok btn btn32 ripple' onclick="chat()"></span></th>
						<th style="text-align: center; width: 48px"><span class='btn-del btn btn32 ripple' onclick="clear()"></span></th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
</body>